Cross-compilation fixes (x86/64 on i386).
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 26 Feb 2006 09:42:07 +0000 (10:42 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 26 Feb 2006 09:42:07 +0000 (10:42 +0100)
commit797df688295c3a2b722cf9bc5d1c575a257645b4
treed266ceaf50302ba0319c0b2837a127fcc1950e4e
parentc173341886b02490e433a595685acfb1f9b22335
Cross-compilation fixes (x86/64 on i386).

Use strtoull to parse the final_exec_addr value from the command
line. Whe cross compiling on i386 for x86-64 unsigned long is 32 bit,
which leads to final_exec_addr being truncated to 32 bits by strtoul,
which leads to grub refusing to load the resulting image. Please
apply.

Use the target nm(1) when cross compiling to pick the _end address
from the Xen binary.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
xen/arch/x86/Makefile
xen/arch/x86/boot/mkelf32.c